package com.sairobo.admin.modules.srblive.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sairobo.base.common.entity.BaseEntity;
import com.sairobo.base.common.support.HtmlUnEscapeDeSerializer;
import com.sairobo.base.common.support.ThumbnailDeSerializer;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 
 *
 * @author admin
 * @email sairobo
 * @url www.sairobo.com
 * @date 2018年1月22日 上午11:48:30
 */
@TableName("live_xcx_courses")
public class LiveXcxCourses extends BaseEntity<Long>  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
    /**
    * 课程id
    */
    @TableField("cid")
    private String cid;
    /**
    * 
    */
    @TableField("title")
    private String title;
    /**
    * 封面图
    */
    @TableField("cover")
    @JsonDeserialize(using = ThumbnailDeSerializer.class)
    private String cover;
    /**
    * 分类
    */
    @TableField("class")
    private String classs;
    /**
    * 副标题
    */
    @TableField("subtitle")
    private String subtitle;
    /**
    * 摘要
    */
    @TableField("summary")
    private String summary;
    /**
    * 内容
    */
    @TableField("content")
    @JsonDeserialize(using = HtmlUnEscapeDeSerializer.class)
    private String content;
    /**
    * 音视频地址
    */
    @TableField("sourceurl")
    private String sourceurl;
    /**
    * 时长：秒数
    */
    @TableField("duration")
    private Integer duration;
    /**
    * 系列课id
    */
    @TableField("seriesid")
    private String seriesid;
    /**
    * 首页焦点
    */
    @TableField("focus")
    private Integer focus;
    /**
    * 0：待上架 1：已上架  2：已下架  3：已删除
    */
    @TableField("status")
    private Integer status;
    /**
    * 
    */
    @TableField("views")
    private Long views;
    /**
    * 0: 单节课  1：系列课
    */
    @TableField("series")
    private Integer series;
    /**
    * 0：不单卖  1：可以单卖
    */
    @TableField("singlesold")
    private Integer singlesold;
    /**
    * 首页展示的排序序号
    */
    @TableField("sort")
    private Long sort;
    /**
    * 课程购买价格
    */
    @TableField("fee")
    private BigDecimal fee;
    /**
    * 点赞数量
    */
    @TableField("zan")
    private Long zan;
    /**
    * 收藏数量
    */
    @TableField("collect")
    private Long collect;
    /**
    * 是否加入到首页推荐列表 0:不加入 1：加入
    */
    @TableField("recommend")
    private Integer recommend;
    /**
    * 是否有活动 0无1有 暂时只支持转发到3个群
    */
    @TableField("activities")
    private Integer activities;
    /**
    * 活动价
    */
    @TableField("activitiesfee")
    private Float activitiesfee = 0f;

    @TableField("liveType")
    private Integer livetype;/* 直播类型 */

    @TableField("liveParentType")
    private Integer liveparenttype;/* 直播间父类型 */

//    /**
//    *
//    */
//    @TableField("createtime")
//    private Date createtime;
//    /**
//    *
//    */
//    @TableField("updatetime")
//    private Date updatetime;

	public LiveXcxCourses() {
		super();
	}

	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getCid() {
		return cid;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitle() {
		return title;
	}
	public void setCover(String cover) {
		this.cover = cover;
	}
	public String getCover() {
		return cover;
	}
	public void setClasss(String classs) {
		this.classs = classs;
	}
	public String getClasss() {
		return classs;
	}
	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	public String getSubtitle() {
		return subtitle;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getSummary() {
		return summary;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContent() {
		return content;
	}
	public void setSourceurl(String sourceurl) {
		this.sourceurl = sourceurl;
	}
	public String getSourceurl() {
		return sourceurl;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	public Integer getDuration() {
		return duration;
	}
	public void setSeriesid(String seriesid) {
		this.seriesid = seriesid;
	}
	public String getSeriesid() {
		return seriesid;
	}
	public void setFocus(Integer focus) {
		this.focus = focus;
	}
	public Integer getFocus() {
		return focus;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getStatus() {
		return status;
	}
	public void setViews(Long views) {
		this.views = views;
	}
	public Long getViews() {
		return views;
	}
	public void setSeries(Integer series) {
		this.series = series;
	}
	public Integer getSeries() {
		return series;
	}
	public void setSinglesold(Integer singlesold) {
		this.singlesold = singlesold;
	}
	public Integer getSinglesold() {
		return singlesold;
	}
	public void setSort(Long sort) {
		this.sort = sort;
	}
	public Long getSort() {
		return sort;
	}
	public void setFee(BigDecimal fee) {
		this.fee = fee;
	}
	public BigDecimal getFee() {
		return fee;
	}
	public void setZan(Long zan) {
		this.zan = zan;
	}
	public Long getZan() {
		return zan;
	}
	public void setCollect(Long collect) {
		this.collect = collect;
	}
	public Long getCollect() {
		return collect;
	}
	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}
	public Integer getRecommend() {
		return recommend;
	}
	public void setActivities(Integer activities) {
		this.activities = activities;
	}
	public Integer getActivities() {
		return activities;
	}
	public void setActivitiesfee(Float activitiesfee) {
		this.activitiesfee = activitiesfee;
	}
	public Float getActivitiesfee() {
		return activitiesfee;
	}
//	public void setCreatetime(Date createtime) {
//		this.createtime = createtime;
//	}
//	public Date getCreatetime() {
//		return createtime;
//	}
//	public void setUpdatetime(Date updatetime) {
//		this.updatetime = updatetime;
//	}
//	public Date getUpdatetime() {
//		return updatetime;
//	}

    public Integer getLivetype() {
        return livetype;
    }

    public void setLivetype(Integer livetype) {
        this.livetype = livetype;
    }

    public Integer getLiveparenttype() {
        return liveparenttype;
    }

    public void setLiveparenttype(Integer liveparenttype) {
        this.liveparenttype = liveparenttype;
    }
}
